package com.example.gw_back_end.domain.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName(value = "tb_order")
public class Order {

  @TableId(value = "id",type = IdType.AUTO)
  private Integer id;
  private Integer userId;
  private String orderCode;
  private Integer status;
  private LocalDateTime createTime;
  private LocalDateTime updateTime;
  private BigDecimal orderTotalAmount;

  @TableField(exist = false)
  private List<Game> orderItems;
}
